package com.dhcc.core.modules.msgcenter.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.core.modules.msgcenter.entity.MsgUserSetting;
import com.dhcc.core.framework.base.mapper.BaseMapper;
import com.dhcc.core.modules.system.entity.User;

/**
 * 用户提醒设置
 * 
 * @ClassName: MsgUserSettingMapper
 * @Description: TODO
 * @author cyf
 * @date 2018-11-15 15:02:16
 */
public interface MsgUserSettingMapper  extends BaseMapper<MsgUserSetting> {
	
    List<MsgUserSetting> list(@Param("map")Map<String, Object> map);
    List<MsgUserSetting> page(@Param("page") Page<MsgUserSetting> page,@Param("map")Map<String, Object> map);
    List<User> receiveAllUsers(@Param("moduleId") Long moduleId,@Param("pushType") String pushType);
    List<User> receiveUsersByUserIds(@Param("moduleId") Long moduleId,@Param("pushType") String pushType,@Param("ids") List<Long> ids);
    List<User> receiveUsersByDeptIds(@Param("moduleId") Long moduleId,@Param("pushType") String pushType,@Param("ids") List<Long> ids);
    List<User> receiveUsersByGroupIds(@Param("moduleId") Long moduleId,@Param("pushType") String pushType,@Param("ids") List<Long> ids);
    List<User> receiveUsersByRoleIds(@Param("moduleId") Long moduleId,@Param("pushType") String pushType,@Param("ids") List<Long> ids);
    List<User> receiveUsersByPositionIds(@Param("moduleId") Long moduleId,@Param("pushType") String pushType,@Param("ids") List<Long> ids);
}
